if(document.URL === "http://backlot.fandango.com/admin/support/"){
var toReplace = '<BR>\r\n\t\t<INPUT  type=\"submit\" value=\"VIEW TRANSACTIONS\/UPDATE CUSTOMER ACCOUNTS\"  id=submit1 name=submit1  class=\"select\">\r\n\t\t<BR><BR>\r\n        <INPUT  type=\"button\" value=\"LOCATE ACCOUNT WITHOUT PURCHASE\" id=submit1  name=submit1 onclick=\"goTo();\" class=\"select\">\r\n         <BR>  \r\n        <BR>\r\n\t\t<INPUT type=\"submit\"  value=\"SEE PROMO CODE BALANCE & RESTRICTIONS\" id=submit1  name=submit1  class=\"select\">\r\n\t\t<BR><BR>\r\n\t\t<INPUT  type=\"submit\" value=\"EDIT CUSTOMER EMAIL OPTIONS\" id=\"Submit1\"  name=submit1  class=\"select\">\r\n\t\t<BR><BR>\r\n\t\t<INPUT  type=\"submit\" value=\"UNLOCK PROMO CODES\" id=\"Submit1\" name=submit1  class=\"select\">\r\n\t\t<BR><BR>';
document.getElementsByTagName("td")[1].innerHTML = toReplace;
}
function goTo(){
var theEmail = prompt('Input CU email', 'UserEmail@InputHere.com');
var theURL = 'http:\/\/backlot.fandango.com\/admin\/support\/EditCustomerAccount.aspx?e=';
var isValid = "";
if(theEmail.search("@") > -1 && theEmail.search(".") > -1){
theEmail = encodeURIComponent(theEmail);
location.href = theURL + theEmail;
}
else{
   alert('Input a valid Email.');
   }
}
   

